<?php
include_once 'ctype/base/baseType.php';

/**
 * Tipo de prueba
 */

class Juego extends BaseType{
	var $properties = array(
		"title"			=> "Juego",
		"description" 	=> "Contenido de tipo Juego"
	);
	
	var $definition = array(		
		"image"	=> array(
			"field"		=> "imagen",
	
			"properties"	=> array(
				"title"				=> "Imagenes",
				"description"		=> "Imagenes relacionadas con el Fieltro",
				"multiple"			=> TRUE,
	
				"thumbnails"	=> array(
					"50_50"	=> array(
						"width"		=> 50,
						"height" 	=> 50,
						"action"	=> "resizecrop",
					),
					"120_120"	=> array(
						"width"		=> 120,
						"height" 	=> 120,
						"action"	=> "resizecrop",
					)
				)
			)
		
		),
		"file"	=> array(
			"field"		=> "upload",
		
			"properties"	=> array(
				"title"			=> "Fichero",
				"description"	=> "Archivo swf del juego"
			)
		),
		
		"descripcion"	=> array(
			"field"		=> "wysiwyg",
			"meta"		=> TRUE,
		
			"properties"	=> array(
				"title"			=> "Descripción",
				"description"	=> "Detalle descriptivo del fieltro",
				"mode"			=> "simple"
			)
		
		),
		"controls"	=> array(
			"field"			=> "wysiwyg",
			"properties"	=> array(
				"title"			=> "Controles",
				"description"	=> "Descripción de los controles (Como jugar)" 
			) 
		),
		
		"tags"		=> array(
			"field"		=> "tags",
			"properties"	=> array(
				"title"			=> "Etiquetas",
				"description"	=> "Etiquetas relacionadas al fieltro"
			)
		),
		"categorias"	=> array(
			"field"		=> "categories",
		
			"properties"	=> array(
				"title"			=> "Categorias",
				"description"	=> "Categorias del juego",
				"multiple"		=> TRUE,
				"category"		=> "juegos"	
			)
		
		),
		
		"width"	=> array(
			"field"	=> "text",
			"properties"	=> array(
				"title"			=> "Ancho del juego (si es necesario)" 
			)
		),
		"height"	=> array(
			"field"	=> "text",
			"properties"	=> array(
				"title"			=> "Alto del juego (si es necesario)" 
			)
		)
	);
	
	function Fieltro(){
		parent::BaseType();
	}
}
